# $OpenBSD: Makefile,v 1.4 2015/07/15 02:26:34 bcallah Exp $

COMMENT =	free multi-dimensional Tetris-like game
DISTNAME =	galois-0.4
CATEGORIES =	games x11

HOMEPAGE =	http://www.nongnu.org/galois/
MAINTAINER =	Brian Callahan <bcallah@openbsd.org>

# GPLv3+
PERMIT_PACKAGE_CDROM =	Yes

WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 atkmm-1.6 c cairo cairomm-1.0
WANTLIB += fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gdkmm-2.4
WANTLIB += gio-2.0 giomm-2.4 glib-2.0 glibmm-2.4 gobject-2.0 gtk-x11-2.0
WANTLIB += gtkmm-2.4 m pango-1.0 pangocairo-1.0 pangoft2-1.0
WANTLIB += pangomm-1.4 pthread sigc-2.0 stdc++ xml++-2.6 xml2 z

MASTER_SITES =	${MASTER_SITE_SAVANNAH:=galois/source/}

MODULES =	devel/gettext

LIB_DEPENDS =	textproc/libxml++ \
		x11/gtk2mm

RUN_DEPENDS =	devel/desktop-file-utils

CONFIGURE_STYLE =	gnu

MAKE_FILE =	makefile
ALL_TARGET =	default
MAKE_FLAGS =	CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"

NO_TEST =	Yes

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/src/galois ${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/doc/galois.6 ${PREFIX}/man/man6
	${INSTALL_DATA_DIR} ${PREFIX}/share/applications
	${INSTALL_DATA} ${WRKSRC}/misc/galois.desktop ${PREFIX}/share/applications
	${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps
	${INSTALL_DATA} ${WRKSRC}/misc/galois.png ${PREFIX}/share/pixmaps

.include <bsd.port.mk>
